import { createStore } from 'vuex';
import persistedState from 'vuex-persistedstate';

export default createStore({
  plugins: [persistedState({ storage: window.sessionStorage })],
  state: {
    user_name: 'ceshi',
  },
  getters: {},
  mutations: {
    addUser(state, value) {
      state.user_name = value;
    },
  },
  actions: {},
  modules: {},
});
